<?php

namespace App\Models;

use Dcat\Admin\Traits\HasDateTimeFormatter;

use Illuminate\Database\Eloquent\Model;

class Platform extends Model
{
    use HasDateTimeFormatter;

    /**
     * 生成台站选择
     * @return array options
     */
    public static function genOptions(): array
    {
        $data = [];
        $platform = Platform::get();
        foreach ($platform as $item) {
            $data[$item->id] = $item->name;
        }

        return $data;
    }
}
